import 'package:flutter/cupertino.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class EmptyWidget extends StatelessWidget {
  final String text;

  EmptyWidget({Key key, this.text = "没有数据"}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Column(
        children: <Widget>[
          Container(
            width: ScreenUtil().setWidth(100.0),
            child:
                Image.asset("assets/imgs/common/empty.png", fit: BoxFit.cover),
          ),
          Text(this.text)
        ],
      ),
    );
  }
}
